import Vue from 'vue'
import Router from 'vue-router'
import Study from '@/page/Study'
import Login from '@/page/Login'
import Main from '@/page/main/Main'
import Order from '@/page/main/order/Order'
import UserSetting from '@/page/main/user/UserSetting'
import User from '@/page/main/user/User'
import Test from '@/page/main/user/Test'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/study',
      name: 'Study',
      component: Study
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
    },
    {
      path: '/main',
      name: 'Main',
      component: Main,
      children: [
        {
          path: 'order',
          component: Order
        },
        {
          path: 'setting',
          component: UserSetting
        },
        {
          path: 'user',
          component: User
        },
        {
          path: 'test',
          component: Test
        }
      ]
    }
  ]

})
